using System.Collections.Generic;
using Kimgwajang.MidnightPeach.Schema;

namespace Kimgwajang.MidnightPeach.Generators
{
    internal class VariableGenerator : Generator
    {
        public VariableGenerator(SortedDictionary<string, string> variables)
            : base(variables)
        {
        }

        internal override string Generate(Macro macro, string text)
        {
            return Variables[macro.Value];
        }
    }
}